#include "main.h"


/* Vofa 调试缓存 */
Frame VofaBuffer = 
{
    .data = {0},
    .tail = {0x00, 0x00, 0x80, 0x7f},
};

/**
 * @brief: 添加数据到对应的Vofa通道
 * @param: data -- 数据
 * @param: channel -- 通道编号
 * @retval: void
 */
void addDataToChannel(float data, VofaChannel chanel)
{
    VofaBuffer.data[chanel] = data;
}

/**
 * @brief: 打印曲线
 * @param: void
 * @retval: void
 */
void showVofa(void)
{
     HAL_UART_Transmit(&huart4,(uint8_t*)(&VofaBuffer),sizeof(VofaBuffer), 100);
}

